page.tsx 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. import { getLocalizedMdx } from "@/shared/lib/mdx/load-mdx";
  2. import { Layout, LayoutContent } from "@/features/page/layout";
  3. import { Typography } from "@/components/ui/typography";
  4. type PageProps = {
  5. params: Promise<{ locale: string }>;
  6. };
  7. export default async function SalesTermsPage({ params }: PageProps) {
  8. const { locale } = await params;
  9. const content = await getLocalizedMdx("sales-terms", locale);
  10. return (
  11. <div className="bg-muted/50 py-12">
  12. <div className="container mx-auto max-w-4xl px-4">
  13. <header className="mb-10 text-center">
  14. <Typography className="mb-2 text-3xl md:text-4xl" variant="h1">
  15. {locale === "fr" ? "Conditions Générales de Vente" : "General Terms of Sale"}
  16. </Typography>
  17. <p className="text-muted-foreground text-base md:text-lg">
  18. {locale === "fr"
  19. ? "Les conditions qui régissent l’achat d’un abonnement Workout Cool."
  20. : "The terms governing the purchase of a Workout Cool subscription."}
  21. </p>
  22. </header>
  23. <Layout>
  24. <LayoutContent className="prose prose-neutral max-w-none dark:prose-invert">{content}</LayoutContent>
  25. </Layout>
  26. </div>
  27. </div>
  28. );
  29. }